<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" href="${ctx}/css/base.css">
<link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all">
<link rel="stylesheet" href="${ctx}/layui/css/asset-in-view.css" media="all">
</head>
<body>
	<div class="layui-main layui-form-pane"
		style="width: 700px; min-height: 580px;">
		<div class="layui-tab">
			<ul class="layui-tab-title">
				<li class="layui-this">基本信息</li>
			</ul>
			<div class="layui-tab-content">
				<div class="layui-tab-item layui-show">
						<div class="layui-form-item">
							<label class="layui-form-label">单号</label>
							<div class="layui-input-inline">
								<input type="text" id="assetOutId" name="assetOutId" value="${assetOutDetailVo.assetOutVo.assetOutId }" class="layui-input">
							</div>
							<label class="layui-form-label">车辆编号</label>
							<div class="layui-input-inline">
								<input type="text" id="trainId" name="trainId" value="${assetOutDetailVo.assetOutVo.trainId }" class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">执行车次</label>
							<div class="layui-input-inline">
								<input type="text" id="assoutdetailtrainNumber" name="trainNumber" value="${assetOutDetailVo.assetOutVo.trainNumber}" class="layui-input">
							</div>
							<label class="layui-form-label">申请人</label>
							<div class="layui-input-inline">
								<input type="text" name="createUserName" value="${assetOutDetailVo.assetOutVo.createUserName }" class="layui-input"/>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">订单时间</label>
							<div class="layui-input-inline">
								<input type="text" id="assoutdetailcreateTime" name="createTime" value="${assetOutDetailVo.assetOutVo.createTime}" class="layui-input">
							</div>
							<label class="layui-form-label">送达时间</label>
							<div class="layui-input-inline">
								<input type="text" name="outTime" id="assoutdetailoutTime" value="${assetOutDetailVo.assetOutVo.outTime }" class="layui-input"/>
							</div>
						</div>
					    <%--<div class="layui-form-item">--%>
					    	<%--<label class="layui-form-label" style="height:100px;display:flex;justify-content:center;align-items:center">评价照片</label>--%>
					    	<%--<div>--%>
					    		<%--<c:forEach items="${assetOutDetailVo.assetOutVo.imgBase64List}" var="img">--%>
					    			<%--<img style="width:150px;height:100px" src="${img}"/>--%>
					    		<%--</c:forEach>--%>
					    	<%--</div>--%>
					    <%--</div>--%>
						<div class="layui-form-item">
							<%--${assetOutDetailVo.assetOutPlansList}--%>
							<c:forEach var="assetOutPlan" items="${assetOutDetailVo.assetOutPlansList}">

								<%--<option value="${assetType.id}">${assetType.name}</option>--%>
							<div style="display: inline-block">
								<label class="layui-form-label" style="width:80px">类型</label>
								<div class="layui-input-inline" style="width:110px;text-align: center">
									<input type="text" style="text-align: center" disabled id="typeName" name="typeName" value="${assetOutPlan.typeName}" class="layui-input">
								</div>
							</div>
							<div style="display:inline-block">
								<label class="layui-form-label" style="width:80px">数量</label>
								<div class="layui-input-inline" style="width:110px;text-align: center">
									<input type="text" style="text-align: center" disabled name="outCount" id="outCount" value="${assetOutPlan.outCount }" class="layui-input"/>
								</div>
							</div>
							<div style="display: inline-block">
								<label class="layui-form-label" >确认数量</label>
								<div class="layui-input-inline" style="width:110px">
									<input type="text" style="text-align: center" disabled name="truthCount" id="truthCount" value="${assetOutPlan.truthCount }" class="layui-input"/>
								</div>
							</div>
								<br />
							</c:forEach>
						</div>

					<div class="layui-form-item">
						<div id="table1"></div>
						<table class="layui-hide" id="test"></table>
					</div>

				</div>
			</div>
		</div>
	</div>
	<script src="${ctx}/js/jquery.min.js"></script>
	<script src="${ctx}/layui/layui/layui.js"></script>
	<%--<script src="${ctx}/js/jfTable.js"></script>--%>
	<script type="text/javascript">
        layui.use('table', function(){
            var table = layui.table;
            var assetOutId = $('#assetOutId').val();
            table.render({
                method : 'post'
                ,elem: '#test'
                ,url:'./getAssetOutTruthList.shtml?id='+assetOutId,
                cols: [[
                    {field:'assetInfoRfidCode',    width:80, title: 'rfid', sort: true}
                    ,{field:'typeName',            width:80, title: '类型'}
                    ,{field:'statusStr',              width:80, title: '状态', sort: true}
                    ,{field:'inputTimeStr',        width:80, title: '出库时间'}
                    ,{field:'secondInputTimeStr',        width:80, title: '录入时间'}
                ]]
                ,page: true
            });
        });
	</script>
</body>
</html>